import ConcreteBuilder.AnimationBuilder;
import ConcreteBuilder.ProductAnimaiton;

public class AnimationDirector {
    private AnimationBuilder builder;

    public void setBuilder(AnimationBuilder builder) {
        this.builder = builder;
    }

    public AnimationDirector(AnimationBuilder concretebuilder)
    {
        this.builder=concretebuilder;
    }

    public ProductAnimaiton constructAnimation(){
        this.builder.buildName();
        this.builder.buildDirector();
        this.builder.buildOriginalauthor();
        this.builder.buildMusic();
        return this.builder.getAnimaitonProduct();
    }

}
